<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引用CDN地址 -->
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script> -->

    <!-- 下载到本地 -->
    <script src="./jquery.js"></script>
</head>

<body>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>

    <script>
        console.log($);

        // 强大的选择器
        $(".box")

            // 隐式迭代
            .text("bas")

            // 无所不能的链式编程（不停地做DOM操作=>性能辣鸡）
            .css({ color: "red" })
            .html("<h3>新闻标题</h3>");

    </script>
</body>

</html>